//
//  UINavigationController+PoP.h
//  高仿暴走斗图
//
//  Created by key on 16/3/21.
//  Copyright © 2016年 huangsongyao. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "UINavigationController+Manager.h"

@interface UINavigationController (PoP)

/**
 *  定制pop动画，返回的是上一层
 *
 *  @param transition 转场类型
 *  @param subtype    方向
 *  @param completion 完成后的回调
 */
- (void)customPoPViewControllerWithTransition:(kHSYCustomViewAnimationTransitionType)transition subtype:(NSString *)subtype completion:(void (^)())completion;

/**
 *  定制pop Root 动画
 *
 *  @param transition 转场类型
 *  @param subtype    方向
 *  @param completion 完成后的回调
 *
 *  @return 跳过的控制器集合
 */
- (NSArray *)customPoPToRootViewControllerWithTransition:(kHSYCustomViewAnimationTransitionType)transition subtype:(NSString *)subtype completion:(void (^)())completion;

/**
 *  定制pop动画，返回指定的vc
 *
 *  @param viewController 要返回的vc控制器
 *  @param transition     转场类型
 *  @param subtype        方向
 *  @param completion     完成后的回调
 *
 *  @return 跳过的控制器集合
 */
- (NSArray *)customPoPToViewController:(UIViewController *)viewController withCustomTransition:(kHSYCustomViewAnimationTransitionType)transition subtype:(NSString *)subtype completion:(void (^)())completion;

/**
 *  定制pop动画，返回指定的vc___rac格式
 *
 *  @param viewController 要返回的vc控制器
 *  @param transition     转场类型
 *  @param subtype        方向
 *
 *  @return rac的signal信号
 */
- (RACSignal *)customPoPToViewController:(UIViewController *)viewController withCustomTransition:(kHSYCustomViewAnimationTransitionType)transition subtype:(NSString *)subtype;

@end
